package com.wondertek.service.task;

import com.wondertek.service.dto.app.req.AppRoomUpdateModeReq;
import com.wondertek.service.service.business.RoomService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Component;

/**
 * @author wangyu
 */
@Component("modeTimedTask")
public class ModeTimedTask {

    @Autowired
    RoomService roomService;


    public void addModeTimedTask(AppRoomUpdateModeReq req){
        System.out.println("定时任务布撤防执行-----------------------------");
        System.out.println("req:"+req);
        roomService.updateMode(req);
    }

}
